package com.nuanshui.heatedloan.userinfo.dal.mapper;

import com.nuanshui.heatedloan.userinfo.form.BoundUserForm;
import com.nuanshui.heatedloan.userinfo.model.ThirdUser;
import com.nuanshui.heatedloan.userinfo.model.User;
import org.apache.ibatis.annotations.Param;

public interface WeixinUserMapper {
	User loadUserByWeixin(@Param("openId") String openId);
	
	ThirdUser loadUserWeixin(@Param("userId") String userId);
	
	void insertUserWeixin(BoundUserForm boundUserForm);
	
	User loadUserByWeixinUnionId(@Param("unionId") String unionId);

	void updateWeixinUserId(@Param("userId") String userId, @Param("openId") String openId);

	void updateWeixinUnionId(@Param("openId") String openId, @Param("unionId") String unionId);

	void deleteUserWeixin(@Param("userId") String userId);
}
